#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>


int main()
{
	int* p = (int*)malloc(sizeof(int) * 5);
	for (int i = 0; i < 5; i++)
	{
		p[i] = i + 1;
		printf("%d ", p[i]);
	}
	p = (int*)malloc(sizeof(int) * 2);
	for (int i = 0; i < 2; i++)
	{
		printf("%d ", p[i]);
	}
	return 0;
}